home *** CD-ROM | disk | FTP | other *** search
/ Internet Publisher's Toolbox 2.0 / Internet Publisher's Toolbox.iso / internet / ntserver / wtsource / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-15  |  6.1 KB  |  224 lines

  1. /* CONFIGURATION FILE FOR THE GN PACKAGE (vers 2.0) */
  2.  
  3.  
  4. /*
  5.  */
  6. #define MAINTAINER  "mailto:C.J.Adie@ed.ac.uk"
  7. /*
  8.  * Enter your e-mail address here
  9.  */
  10.  
  11. /*
  12.  */
  13. #define GN_HOSTNAME "esk.emwac.ed.ac.uk"
  14. /*
  15.  * Enter your fully qualified host name here
  16.  */
  17.  
  18.  
  19. /*
  20.  */
  21. #define ROOT_DIR    "d:\\http"
  22. /*
  23.  * Enter the complete path of your root data directory here.
  24.  */
  25.  
  26.  
  27. /*
  28.  */
  29. #define ROOT_MENU_NAME  "Root of server"
  30. /*
  31.  * Enter a name for your root directory.  This is used by WWW only, 
  32.  * there is no way for a gopher server to specify the title of the
  33.  * root menu.
  34.  */
  35.  
  36.  
  37. /*
  38.  */
  39. #define MIME_TYPE_FILE  "/home/azure/cja/gn-2.0/src/mkcache/gn_mime.types"
  40. /*
  41.  * This file contains information permitting mkcache to translate 
  42.  * ascertain the MIME "Content-type" from the suffix of a file name
  43.  * together with the gopher type of the file.  This information is
  44.  * necessary for HTTP/1.0 and gopher+ clients to know how to display
  45.  * files.  If this file is not present mkcache will issue a warning
  46.  * but use internal default values.  The file exists so that you
  47.  * can add to it if you wish to add new kinds of documents to your
  48.  * server.  The format of the file is explained in the file.
  49.  * The default version of the file is in mkcache/gn_mime.types.
  50.  * The internal defaults are the same as what is currently in this
  51.  * file.
  52.  */
  53.  
  54.  
  55. /*
  56.  */
  57. #define WAISGN  "/usr/local/etc/waisgn"
  58. /*
  59.  * This is the complete path name of the waisgn program which 
  60.  * handles WAIS indexes.  If you do not use WAIS indexing use 
  61.  * a value of "".
  62.  * NOTE: THIS MUST BE THE SAME AS $(SERVBINDIR)/waisgn AS SERVBINDIR
  63.  * IS DEFINED IN THE MAKEFILE IF YOU USE MAKE INSTALL TO INSTALL waisgn.
  64.  */
  65.  
  66.  
  67. /*
  68.  * STANDALONE STUFF
  69.  * Doing "make sgn" in the /gn directory produces sgn (rather than gn) 
  70.  * which can run stand alone.  The port used will be the DEFAULTPORT
  71.  * set below.
  72.  *
  73.  * These are the group and user id you want the server to run as when
  74.  * running as sgn (i.e. standalone).  These have no effect when run from
  75.  * inetd.
  76.  */
  77.  
  78. #define USERID      (65534)
  79. #define GROUPID     (65534)
  80.  
  81. /*
  82.  * BSD should be defined for BSD like systems.  This includes SunOS (not
  83.  * SOLARIS), Ultrix, NeXT, I think.  This is only used if STANDALONE is
  84.  * defined.  If you are not using a BSD like system comment this out.
  85.  */
  86.  
  87. #define BSD
  88.  
  89. /*
  90.  * #define NO_FLOCK
  91.  *
  92.  * Uncomment this if your system does not have the flock() system call.
  93.  * Doing this means that if more than one client is using your server 
  94.  * at the same time, your logfile might be garbled.  There are no other
  95.  * ill effects.
  96.  *
  97.  */
  98.  
  99.  
  100. /* #define GID_SET 70   /* Group ID number gn will run as */
  101. /* #define UID_SET -2   /* User ID number gn will run as */
  102. /*
  103.  *  These are used only for gn, not for sgn.
  104.  *  If you are using an inetd without the capability to set UID
  105.  *  on startup (e.g., Ultrix), you should define the group ID and
  106.  *  user ID so that the program is not running as root.
  107.  *  GID_SET must be defined if UID_SET is to be defined, and if
  108.  *  GID_SET is defined, UID_SET will be assigned -2 unless 
  109.  *  specifically defined.
  110.  */
  111.  
  112. /*
  113.  * #define NO_SYSLOG
  114.  *
  115.  * Uncomment this if your system does not have the openlog()/syslog()
  116.  * system calls.  Doing this means that you won't be able to have your
  117.  * log entries put in the system log ( the "-S" option to gn).  You
  118.  * can still use the "-L" option to write the entries to a named log file.
  119.  *
  120.  */
  121.  
  122. /*
  123.  * #define NO_VOID_PTR
  124.  *
  125.  * Uncomment this if your compiler does not support void pointers.
  126.  *
  127.  */
  128.  
  129. /*
  130.  * #define NEED_PUTENV
  131.  *
  132.  * Uncomment this if your compiler library does not have the function
  133.  * putenv().  NeXT and NeXTStep systems are known to ned this.
  134.  *
  135.  */
  136.  
  137. /*
  138.  * #define NEED_STRFTIME
  139.  *
  140.  * Uncomment this if your compiler library does not have the function
  141.  * strftime()
  142.  *
  143.  */
  144.  
  145. /*
  146.  * #define NEED_STRNCASECMP
  147.  *
  148.  * Uncomment this if your compiler library does not have the function
  149.  * strcasecmp()
  150.  *
  151.  */
  152.  
  153.  
  154. /*
  155.  ****************************************************************
  156.  * If you wish you can change the following defaults.
  157.  ****************************************************************
  158.  */
  159.  
  160.  
  161. /*
  162.  */
  163. #define DEFAULTPORT "70"
  164. /*
  165.  * If you wish to run at a different port than 70, edit this line.
  166.  */
  167.  
  168. #define DECOMPRESS  "/usr/net/bin/zcat"
  169.  
  170. #define ACCESSFNAME ".access"
  171.  
  172. #define CACHEFNAME  ".cache"
  173.  
  174. #define MENUFNAME   "menu"
  175.  
  176. #define TEMPDIR     "/tmp"
  177.  
  178. #define MAXDEPTH    (10)    /* maximum depth of menus to search */
  179.  
  180. #define TIMEOUT (300)       /* Time in seconds to wait before timeout */
  181.                 /* Five minutes should be adequate  */
  182.  
  183. #define CGI_EXT     ".cgi"  /* File extension for CGI scripts   */
  184.  
  185. #define SEARCHABLE_ROOT TRUE    /* Change to FALSE to prevent searching */
  186.  
  187. /*
  188.  * #define GOPHERD_LOG_STYLE
  189.  * Uncomment for log files like those of UMN gopherd
  190.  * 
  191.  * #define OLDGN_LOG_STYLE
  192.  * Uncomment for log files like those of gn versions < 2.0
  193.  */
  194.  
  195. /*
  196.  * #define ESCAPE_META
  197.  *
  198.  * Ucomment this at your peril.  Several people has asked for the 
  199.  * capability to pass all characters to shell scripts (type exec0, etc.), 
  200.  * with the dangerous ones escaped with a backslash.  The normal behavior
  201.  * is replace all the characters which have a special meaning to the
  202.  * shell like ';' or '|' with a space.  This is done as a security
  203.  * measure.  Escaping these characters with a backslash, as near as I can
  204.  * tell, is secure for the shell which gn invokes to run your script or
  205.  * program.  But it does nothing to protect any scripts *you* write.  I
  206.  * don't advise using this.  If you uncomment this keep in mind that if
  207.  * your script contains the line "echo $1" that $1 might be equal to 
  208.  * "Tough luck!; rm /*" so your command is turned into "echo Tough luck!;
  209.  * rm /*".  (By the way, if you are running with the user properly set to
  210.  * 'nobody' in inetd.conf, no damage should be done by this particular 
  211.  * command.  Anyway the capability is there if you feel confident using
  212.  * it.  I don't use it.
  213.  * 
  214.  */
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.